package com.uzhie.web.bean;

import java.io.Serializable;

/**
 * Created by Coder on 2018/7/13.
 */
public class ResponseBodyBean<T> extends PayloadBean implements Serializable {

    private T result;
    private PageBean page;
    private ErrorBean error;

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public PageBean getPage() {
        return page;
    }

    public void setPage(PageBean page) {
        this.page = page;
    }

    public ErrorBean getError() {
        return error;
    }

    public void setError(ErrorBean error) {
        this.error = error;
    }

    public static ResponseBodyBean getInstance(){
        ResponseBodyBean bodyBean =  new ResponseBodyBean();
        bodyBean.setPage(new PageBean());
        bodyBean.setError(new ErrorBean());
        return bodyBean;
    }

}
